package org.acghub.mtdb;

import cn.hutool.core.io.resource.ResourceUtil;
import cn.hutool.json.JSONUtil;
import org.acghub.mtdb.common.Config;
import org.acghub.mtdb.xmlgen.Generator;

/**
 * @author zhouhe
 */
public final class XmlGenApp {

    public static void main(String[] args) throws Exception {
        String jsonStr = ResourceUtil.readUtf8Str("mtdb.json");
        Config config = JSONUtil.toBean(jsonStr, Config.class);
        new Generator(config).generate();
    }

}
